/**
 * Created by yangyxu on 10/12/15.
 */
$.define('fily.ui.FilterForm', {
    default: {

    },
    style: {
        '.filter-form': 'height: auto;width:100%;background-color:#F3F3F3;padding: 5px 0px;'
    },
    view: {
        tag: 'div',
        cn: 'filter-form',
        content: [
            {
                tag: 'div',
                cn: 'form-item',
                content: {
                    tag: 'input',
                    attrs: {
                        name: 'collector',
                        placeholder: 'Test1'
                    }
                }
            },
            {
                tag: 'div',
                cn: 'form-item',
                content: {
                    tag: 'input',
                    attrs: {
                        name: 'type',
                        placeholder: 'Test2'
                    }
                }
            }
        ]
    },
    methods: {
        init: function (args){
            //console.log(args);
        },
        submit: function (event, sender){
            console.log(event);
        }
    }
});